package com.chb.controller;

import com.chb.model.vo.Result;
import com.chb.service.StorageVolumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 陈海彬
 * @date: Created in 2023/9/26 17:07
 * @description:
 * @modified By:
 * @version:
 */
@RestController
@RequestMapping("/storageVolume")
public class StorageVolumeController {
    @Autowired
    private StorageVolumeService storageVolumeService;

    @GetMapping("/list")
    public Result getInfoById(Integer id) {
        Result volumeInfoById = storageVolumeService.findStorageVolumeInfoById(id);
        return volumeInfoById;
    }
}